<template>
	<view class="content">
		<g-content-navbar ref="gContentNavbar" :title="title"></g-content-navbar>
		<g-map-marker ref="gmapmarker"></g-map-marker>
	</view>
</template>

<script>
	export default {
		computed: {},
		data() {
			return {
				title: '地图',
			}
		},
		onLoad(option) {},
		onReady() {
			uni.getSystemInfo({
				success: (sysinfo) => {
					this.$refs.gContentNavbar.getTabbarHeight((topHeight) => {
						let height = sysinfo.windowHeight
						let top = topHeight 
						this.$refs.gmapmarker.show(sysinfo.windowWidth, height - top, top, {
							lng: '118.176863',
							lat: '24.487952'
						})
					})
				}
			})
		},
		watch: {},
		methods: {}
	}
</script>

<style lang="scss" scoped>
	.content {
		min-height: 100vh;
		background-color: #FFFFFF;
	}
</style>
